package com.zsrt.java.day20170103.wrl.demo03;

import org.junit.Test;

public class StudentTest {

	@Test
	public void test() {
		//1.父类声明
		Student zhangsan;
		
		//2.new出具体的子类---多态：方法调用一样，运行结果不同
		zhangsan = new ZhangSan("张三",18);
		zhangsan.luRuZhiWen();
		
		Student lisi = new LiSi("李四", 80);
		lisi.luRuZhiWen();
	}

}
